.copy-button {
  padding: 8px;
  transition: all 0.3s;
  color: #909090;
}

.button-container {
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
}

/* 移动到消息容器时，显示按钮 */
.message-container:hover .button-container {
  opacity: 1;
  transition: opacity 0, 2s ease-in-out;
}

/* 最后一条信息，始终显示按钮 */
.message-container.is-last .button-container {
  opacity: 1;
}

.reload-button {
  padding: 8px;
  color: #909090;
}

.loading {
  margin-left: 8px;
  margin-top: 6px
}

.cancel-message {
  font-size: 12px;
  color: #909090;
}

.error-message {
  background-color: #fff1f0;
  border: 1px solid #ffa39e;
  border-radius: 8px;
  padding: 8px 12px;
  word-break: break-all;
}

.error-icon {
  color: #ff4d4f;
  line-height: 1.4;
  transform: translateY(4.5px);
}

.error-text {
  color: #a8071a;
}

@media (max-width: 768px) {
  .button-container {
    opacity: 1;
  }
}